class HomesController < ApplicationController 

  def index
    @salles = Salle.all
	
    respond_to do |format|
      format.html {render :layout => 'layout'} # index.html.erb
    end
  end  
  
  def show
    @salles = Salle.all
    @machines = Machine.all
  end
  
  def ajax
    @machines = Machine.find(params[:id])
  end
  
  def createsalle
    @salle = Salle.new
  end
  
  def createmachine
    @machine = Machine.new
  end
  
  def createurgency
    @machines = Machine.find(params[:id])
    # format.html {render :layout => 'layout'} #createurgency.html.erb
  end
end
